import React from "react";

export function Home() {
  const [count, setCount] = React.useState(0);

  // 测试
  const test1 = "测试文本1";
  const test2 = "测试文本2";
  const test3 = "测试文本3";
  const test4 = "测试文本4";
  const test5 = "测试文本5";

  return (
    <div>
      <div>this is Home</div>
      <div>{count}</div>
      <ul>
        <li>{test1}</li>
        <li>{test2}</li>
        <li>{test3}</li>
        <li>{test4}</li>
        <li>{test5}</li>
      </ul>
      <button onClick={() => setCount(count + 1)}>+1</button>
      <button onClick={() => setCount(count - 1)}>-1</button>
    </div>
  );
}
